package com.yidu.hbatsft.dao;


import com.yidu.hbatsft.domain.AtsPlanYearMore;
import com.yidu.hbatsft.domain.AtsPlandimSearch;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AtsPlanYearMoreMapper {

    int deleteByPrimaryKey(Integer pid);

    int insert(AtsPlanYearMore record);

    int insertSelective(AtsPlanYearMore record);

    AtsPlanYearMore selectByPrimaryKey(Integer pid);

    int updateByPrimaryKeySelective(AtsPlanYearMore record);

    int updateByPrimaryKey(AtsPlanYearMore record);

    /**
     * 查询所有，包括模糊查询
     * @param atsPlandimSearch 模糊查询需要的值
     * @return
     */
    List<AtsPlanYearMore> selectAll(AtsPlandimSearch atsPlandimSearch);


    /**
     * 查询总行数
     * @param atsPlandimSearch 模糊查询需要的值
     * @return
     */
    Integer count(AtsPlandimSearch atsPlandimSearch);

    /**
     * 删除
     * @param pid pid
     * @return
     */
    int updateDelete(Integer pid);




}